﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

using System.Data.SqlClient;
namespace QuanLyDiemHocSinh.Controls
{
    public partial class Khung_Dang_Nhap : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lbtendn.Text = Session["tendn"].ToString();
            lbquyen.Text = Session["quyendn"].ToString();
            string chuoiketnoi = "Server=.\\SqlExpress;Integrated Security=True;Database=QuanLyDiem";
            SqlConnection ketnoi = new SqlConnection(chuoiketnoi);

            SqlDataReader rdr = null;
            SqlCommand cmd = new SqlCommand("select * from NguoiDung", ketnoi);
            try
            {
                ketnoi.Open();
            }
            catch (Exception exx)
            {

            }
        }

        protected void btthoat_Click(object sender, EventArgs e)
        {
            
        lbtendn.Text = "";
            lbquyen.Text="";
            Response.Redirect("~/Trangchu.aspx");

        }
    }
}